/*
 * @Author: Lizhenyu
 * @Date: 2021-07-13 17:54:21
 * @FilePath: \usp-osm-frondend\src\api\common.js
 */
import { service } from '@/utils/request'

export function fetchLookupList () {
  return service({
    url: '/admin/mdm/ditDic/redisList/listAll',
    method: 'post'
  })
}

export function fetchLookupListByType (lookupType) {
  return service({
    url: '/api/v1/protected/lookup-values/' + lookupType,
    method: 'post'
  })
}

export function uploadFile (data) {
  return service({
    url: '/api/v1/common/protected/upload-file',
    method: 'post',
    data: data
  })
}

export function drawList (data) {
  return service({
    url: '/api/v1/tpaperhandler/protected/draw-list',
    method: 'post'
  })
}
// 通过orgId 获取所有的orgId对应的所有的语言包
export function getOrgIdLanguage (data) {
  return service({
    url: '/admin/mdm/language/list-by-org',
    method: 'post',
    data: data
  })
}
// 获取商品所有属性列表
export function getAttributesList (data) {
  return service({
    url: '/admin/mdse/attributes/list',
    method: 'post',
    data: data
  })
}
